
#ifndef TP_SOURCE_TIMER_H
#define TP_SOURCE_TIMER_H

#include "tp_source.h"

TP_DECL_BEGIN

typedef TpRet (*TpOnTimer)(void* user_data);

TpSource* tp_source_timer_create(int interval, TpOnTimer on_timer, void* user_data);

TP_DECL_END

#endif /*TP_SOURCE_TIMER_H*/